package com.markus.basic.设计模式.装饰者模式;

/**
 * Author:markusZhang
 * Date:Create in 2020/8/31 10:20
 * todo:
 */
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        shape.draw();
        setShape(shape);
    }

    private void setShape(Shape shape){
        System.out.println("this shape`s color is red");
    }
}
